Packagesora.graybox.event
Classpublic final class GBEventDispatcher
InheritanceGBEventDispatcher Inheritance flash.events.EventDispatcher
Implements IGrayBoxModule

GBEventDispatcherオブジェクトは入力されたMIDIメッセージに 対応するイベント(GBEvent)を非同期で送出するGrayBoxモジュールです. このモジュールを使用することで再生するサウンドに同期したアートワークなどを作成することができます。

このモジュールはホストに接続されているときアクティブになります。 イベントの送出はアクティブ状態で行われます。

See also

sora.graybox.event.GBEvent


Public Properties
 PropertyDefined By
  dispMetaMessage : Boolean = false
SMFメタメッセージのイベント送出フラグです.
GBEventDispatcher
  dispSystemMessage : Boolean = false
MIDIシステムメッセージのイベント送出フラグです.
GBEventDispatcher
  midiInPorts : int = 0xFFFF
MIDIメッセージ情報の入力ポートを示すビットフラグ(16bit)です.
GBEventDispatcher
Public Methods
 MethodDefined By
  
GBEventDispatcher(videoFrameRate:Number)
GBEventDispatcherオブジェクトを構築します.
GBEventDispatcher
  
GBEventDispatcher
  
GBEventDispatcher
  
GBEventDispatcher
  
process(procData:ProcessData):void
GBEventDispatcher
  
GBEventDispatcher
  
GBEventDispatcher
  
setFrameRate(rate:Number):void
ビデオフレームレートを設定します.
GBEventDispatcher
  
GBEventDispatcher
  
GBEventDispatcher
  
GBEventDispatcher
  
updateAudioChannels(ch:int):void
GBEventDispatcher
  
updateBypassStatus(bypass:Boolean):void
GBEventDispatcher
  
updateProcessBlockSize(size:int):void
GBEventDispatcher
  
updateSampleRate(sampleRate:Number):void
GBEventDispatcher
Events
 Event Summary Defined By
   MIDIチャンネルメッセージ イベント.GBEventDispatcher
   MIDIシステムメッセージ イベント.GBEventDispatcher
   SMFメタメッセージ イベント.GBEventDispatcher
Property Detail
dispMetaMessageproperty
public var dispMetaMessage:Boolean = false

SMFメタメッセージのイベント送出フラグです.

dispSystemMessageproperty 
public var dispSystemMessage:Boolean = false

MIDIシステムメッセージのイベント送出フラグです.

midiInPortsproperty 
public var midiInPorts:int = 0xFFFF

MIDIメッセージ情報の入力ポートを示すビットフラグ(16bit)です. 最下位ビットをポート1として16ポート分指定できます。 デフォルト値は0xFFFFで全ポートを対象としています。

Constructor Detail
GBEventDispatcher()Constructor
public function GBEventDispatcher(videoFrameRate:Number)

GBEventDispatcherオブジェクトを構築します.

Parameters
videoFrameRate:Number
Method Detail
connectModule()method
public function connectModule(host:GrayBox):void

Parameters

host:GrayBox

disconnectModule()method 
public function disconnectModule():void

initiModule()method 
public function initiModule():void

process()method 
public function process(procData:ProcessData):void

Parameters

procData:ProcessData

resetModule()method 
public function resetModule():void

resumeProcess()method 
public function resumeProcess():void

setFrameRate()method 
public function setFrameRate(rate:Number):void

ビデオフレームレートを設定します.

Parameters

rate:Number

startProcess()method 
public function startProcess():void

stopProcess()method 
public function stopProcess():void

suspendProcess()method 
public function suspendProcess():void

updateAudioChannels()method 
public function updateAudioChannels(ch:int):void

Parameters

ch:int

updateBypassStatus()method 
public function updateBypassStatus(bypass:Boolean):void

Parameters

bypass:Boolean

updateProcessBlockSize()method 
public function updateProcessBlockSize(size:int):void

Parameters

size:int

updateSampleRate()method 
public function updateSampleRate(sampleRate:Number):void

Parameters

sampleRate:Number

Event Detail
midiChannelMessage Event
Event Object Type: sora.graybox.event.GBEvent
GBEvent.type property = sora.graybox.event.GBEvent.MIDI_CHANNEL_MESSAGE

MIDIチャンネルメッセージ イベント.
プロパティ
messageTypeMIDIメッセージのイベントタイプの値
channel0-15
value00-127
value10-127
datanull
midiSystemMessage Event  
Event Object Type: sora.graybox.event.GBEvent
GBEvent.type property = sora.graybox.event.GBEvent.MIDI_SYSTEM_MESSAGE

MIDIシステムメッセージ イベント.
プロパティ
messageTypeMIDIメッセージのイベントタイプの値
channel0
value00
value10
datanull またはメッセージデータ
smfMetaMessage Event  
Event Object Type: sora.graybox.event.GBEvent
GBEvent.type property = sora.graybox.event.GBEvent.SMF_META_MESSAGE

SMFメタメッセージ イベント.
プロパティ
messageTypeMIDIメッセージのイベントタイプの値
channel0
value00 または特定の値
value10
dataメタイベントデータ